package com.gzxw.mogublog.commons.feign;

import com.gzxw.mogublog.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "mogu-picture")
public interface PictureFeignClient {

    // 通过id获取图片
    @PostMapping("/file/getPicture")
    R getPicture(@RequestParam("fileId") String fileId);


    // 通过ids获取图片
    @PostMapping("/file/getPictures")
    R getPictures(@RequestBody List<String> fileIds);
}
